package com.mm.learn.login;/**
 * @author wdx
 * @create 2021-09-23 9:49
 */

import org.springframework.stereotype.Service;

/**
 * @author wdx
 * @date 2021年09月23日 9:49
 * 具体策略 手机验证码登陆
 */
@Service
public class SmsServiceImpl extends AbstractLogin {

    public SmsServiceImpl(UserDao userDao) {
        super(userDao);
    }

    @Override
    public String doLogin(String password) {
        System.out.println("sms");
        return "sms";
    }

    @Override
    public Integer id() {
        return 2;
    }
}
